package com.yangrong.thread.chapter7;

public class UsePersonThread extends Thread {

	private Person person;

	public UsePersonThread(Person person) {
		this.person = person;
	}

	public void run() {
		while (true) {
			System.out.println(Thread.currentThread().getName() + " print " + person.toString());
		}
	};
}
